<?php
require_once ('bootstrap.inc.php');

$route = new Route();
$controller = $route->getController();

if(in_array($controller, func::get_cfg('controller_arr')))
{
	$class_name = 'Controller_' . ucfirst($controller);
	$object = new $class_name();
	call_user_func(array($object, 'remap'), $route->getMethod());
}
else
{
	header('HTTP/1.1 404 Not Found');
	echo '<hr />' . 'No Object';
}
